package com.company.designmode.struct.proxy;

public class RealImage implements Image{


    private String fileName;

    private void loadFromDisk(String fileName){
        System.out.println("RealImage---Loading " + fileName);
    }
    public RealImage(String fileName){
        this.fileName = fileName;
        loadFromDisk(fileName);
    }

    @Override
    public void display() {
        System.out.println("RealImage--Displaying " + fileName);
    }
}
